package com.wangyadong.hobby.schedule.jobtask.javasync.Observerable.observer;

/**
 * <p>
 * 具体的主题会通知到所有的观察者
 *
 * @author <714037465@qq.com>
 * @since 2018/11/1517:34
 **/
public class ConcreteSubject extends Subject {

    private String state;

    public String getState() {
        return state;
    }

    public void change(String newState) {
        this.state = newState;
        this.nodifyObservers(state);
    }


}
